package com.lagou.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @description: 封装好了dataSource以及sql对象的实体类
 * @author oyz
 * @date 2022/10/16 9:04
 * @version 1.0
 */
public class Configuration {
    /**
     * 数据库配置类
     */
    private DataSource dataSource;

    /**
     * key:代表mapper里边定义到的查询语句的id
     */
    Map<String,MappedStatement> map = new HashMap<String, MappedStatement>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStement() {
        return map;
    }

    public void setMap(Map<String, MappedStatement> map) {
        this.map = map;
    }
}
